package cn.springboot.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName purchase_receipts
 */
@TableName(value ="purchase_receipts")
@Data
public class PurchaseReceipts implements Serializable {
    /**
     * 收货ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 供应商名称
     */
    @TableField(value = "supplier_name")
    private String supplierName;

    /**
     * 商品名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 商品分类ID，关联商品分类表
     */
    @TableField(value = "category_id")
    private Integer categoryId;

    /**
     * 商品型号
     */
    @TableField(value = "version")
    private String version;

    /**
     * 商品颜色
     */
    @TableField(value = "color")
    private String color;

    /**
     * 采购数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 实际收货数量
     */
    @TableField(value = "received_quantity")
    private Integer receivedQuantity;

    /**
     * 收货日期
     */
    @TableField(value = "receipt_date")
    private Date receiptDate;

    /**
     * 收货备注
     */
    @TableField(value = "note")
    private String note;

    /**
     * 采购员
     */
    @TableField(value = "operator")
    private String operator;

    /**
     * 订单状态 0 未入库 1 已入库
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}